﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using Gx.Common;
using Gx.Model.Other;


namespace Gx.Bll.OtherBll
{
    public class TxtHelper
    {
        /// <summary>
        /// 写工资明细日志
        /// </summary>
        /// <param name="empPayDetailsList"></param>
        /// <returns></returns>
        //public static string WriteTxt(List<> empPayDetailsList)
        //{
        //    StringBuilder sb = new StringBuilder();
        //    sb.AppendFormat(
        //        "{0}" + "\t " + "{1}" + "\t " + "{2}" + "\t " + "{3}" + "\t " + "{4}" + "\t " + "{5}" + "\t " +
        //        "{6}" + "\t " + "{7}" + "\t " + "{8}" + "\t " +
        //        "{9}" + "\t " + "{10}" + "\t " + "{11}" + "\t " + "{12}" + "\t " + "{13}" + "\t " + "{14}" + "\t " + "{15}" + "\t " +
        //        "{16}" + "\t " + "{17}" + "\t " + "{18}" + "\t " + "{19}" + "\t " + "{20}" + "\t " + "{21}" + "\t " + "{22}" + "\t " +
        //        "{23}" + "\t " + "{24}" + "\n",

        //        "工号", "姓名", "岗位工资", "上班天数", "实际上班天数", "试用期天数",
        //        "请假扣款", "考勤扣款", "奖惩工资",
        //        "公司养老", "公司医保", "公司生育", "公司失业", "公司工伤", "公司公积金扣款", "公司合计",
        //        "个人养老", "个人医保", "个人生育", "个人失业", "个人工伤", "个人公积金扣款", "个人合计",
        //        "应税工资", "实发工资");

        //    foreach (var item in empPayDetailsList)
        //    {
        //        sb.AppendFormat(
        //                                "{0}" + "\t " + "{1}" + "\t " + "{2}" + "\t " + "{3}" + "\t " + "{4}" + "\t " + "{5}" + "\t " +
        //                                "{6}" + "\t " + "{7}" + "\t " + "{8}" + "\t " +
        //                                "{9}" + "\t " + "{10}" + "\t " + "{11}" + "\t " + "{12}" + "\t " + "{13}" + "\t " + "{14}" + "\t " + "{15}" + "\t " +
        //                                "{16}" + "\t " + "{17}" + "\t " + "{18}" + "\t " + "{19}" + "\t " + "{20}" + "\t " + "{21}" + "\t " + "{22}" + "\t " +
        //                                "{23}" + "\t " + "{24}" + "\n",

        //                                item.EmpNum, item.EmpName, item.MonthTotalPay.ToStringf2(), item.WorkDays, item.ActualWorkingDays, item.ProbationPeriodDay,
        //                                item.LeavePay.ToStringf2(), item.AttendancePay.ToStringf2(), item.RewardAmercePay.ToStringf2(),
        //                                item.CompanyPension.ToStringf2(), item.CompanyMedical.ToStringf2(), item.CompanyMaternity.ToStringf2(), item.CompanyUnemployment.ToStringf2(), item.CompanyEmploymentInjury.ToStringf2(), item.CompanyHousingProvidentFund.ToStringf2(), item.CompanySocialSecurityTotal.ToStringf2(),
        //                                item.PersonPension.ToStringf2(), item.PersonMedical.ToStringf2(), item.PersonMaternity.ToStringf2(), item.PersonUnemployment.ToStringf2(), item.PersonEmploymentInjury.ToStringf2(), item.PersonHousingProvidentFund.ToStringf2(), item.PersonSocialSecurityTotal.ToStringf2(),
        //                                item.TaxableWages.ToStringf2(), item.NetSalary.ToStringf2());
        //    }
        //    return sb.ToString();
        //}

    }
}
